package org.anderground.internal;

/**
 * @author Eldar Abusalimov
 */
public class LoggerImpl implements AbstractLogger {

	private static final String TAG = "AndergroundEditor";
	private static final String D = " (DD) ";
	private static final String V = " (VV) ";
	private static final String I = " (II) ";
	private static final String W = " (WW) ";
	private static final String E = " (EE) ";

	@Override
	public String getTag() {
		return TAG;
	}

	@Override
	public void d(String tag, String msg, Throwable tr) {
		System.out.println(D + msg);
		tr.printStackTrace();
	}

	@Override
	public void d(String tag, String msg) {
		System.out.println(D + msg);
	}

	@Override
	public void v(String tag, String msg, Throwable tr) {
		System.out.println(V + msg);
		tr.printStackTrace();
	}

	@Override
	public void v(String tag, String msg) {
		System.out.println(V + msg);
	}

	@Override
	public void e(String tag, String msg, Throwable tr) {
		System.out.println(E + msg);
		tr.printStackTrace();
	}

	@Override
	public void e(String tag, String msg) {
		System.out.println(E + msg);
	}

	@Override
	public void i(String tag, String msg, Throwable tr) {
		System.out.println(I + msg);
		tr.printStackTrace();
	}

	@Override
	public void i(String tag, String msg) {
		System.out.println(I + msg);
	}

	@Override
	public void w(String tag, String msg, Throwable tr) {
		System.out.println(W + msg);
		tr.printStackTrace();
	}

	@Override
	public void w(String tag, String msg) {
		System.out.println(W + msg);
	}

}
